#!/bin/sh

src="/e/work/code/server/gogoproto-modified/protobuf/"
workDir="$PWD"

echo "===== goto srcDir====="
cd "$src"/protoc-gen-gogofaster


echo "===== build gogofaster====="
GOOS=windows go build -v -o protoc-gen-gogofaster.exe
GOOS=linux   go build -v -o protoc-gen-gogofaster

echo "===== clean and update workDir/gogofaster====="
rm -rfv "$workDir"/protoc-gen-gogofaster*
mv -v protoc-gen-gogofaste{r,r.exe} "$workDir"

echo "===== show workDir/gogofaster====="
cd "$workDir"
ls -l

sleep 100